import { http, createConfig } from "@wagmi/vue";
import { mainnet, sepolia } from "@wagmi/vue/chains";
import { injected, walletConnect } from "@wagmi/vue/connectors";

const projectId = "3ab927990a7852a24b379c882a04df0a";

export const config = createConfig({
  chains: [sepolia, mainnet],
  connectors: [injected(), walletConnect({ projectId })],
  transports: {
    [mainnet.id]: http(),
    [sepolia.id]: http(),
  },
});

declare module "@wagmi/vue" {
  interface Register {
    config: typeof config;
  }
}
